From 96c3858b21d1e55ead98f2eeaecd11c1f7af1488 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 13 Sep 2010 20:32:13 +0900 Subject: [PATCH] Make testwrapbox scrolled window scrollbars automatic. Did this in the hope to reproduce infinite recursion bugs with height-for-width in scrolled windows (see complex bgo #611740 for reference for now). --- tests/testwrapbox.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testwrapbox.c b/tests/testwrapbox.c index fb6228f024..eb98abf7bd 100644 --- a/tests/testwrapbox.c +++ b/tests/testwrapbox.c @@ -276,6 +276,9 @@ create_window (void) gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); swindow = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swindow), + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_widget_show (swindow); gtk_container_add (GTK_CONTAINER (frame), swindow); -- 2.30.2